package bjtu.cit.bookshop.common;

/**
 * Created by jia19 on 2015/9/18.
 */
public class ErrorCode {

    private int code;
    private String description;

    public Object getMessage() {
        return message;
    }

    public void setMessage(Object message) {
        this.message = message;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    private Object message = null;

    public ErrorCode(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public ErrorCode(ErrorCode errorCode, Object o) {
        this.code = errorCode.code;
        this.description = errorCode.description;
        this.message = o;
    }
}
